// 封装axios
import axios from "axios";
const request = axios.create({
    baseURL: 'https://restapi.amap.com/v3',
    tiemout: 3000,
})

//简单配置axios的拦截器
request.interceptors.response.use((res) => {
    return res.data
}, () => {
    return Promise.reject(err)
})

export default request